import request from '@/utils/request'

// 查询岗位列表
export function listPost(query) {
  return request({
    url: '/system/students/list',
    method: 'get',
    params: query
  })
}

  export function getPost(studentId) {
    return request({
      url: '/system/students/' + studentId,
      method: 'get'
    })
}

export function addPost(data) {
  return request({
    url: '/system/students',
    method: 'post',
    data: data
  })
}
export function updatePost(data) {
  return request({
    url: '/system/students',
    method: 'put',
    data: data
  })
}

export function delPost(studentId) {
  return request({
    url: '/system/students/' + studentId,
    method: 'delete'
  })
}

